package com.wad.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wad
 * @date 2023/12/03 18:18
 * @project e-commerce
 **/
@Mapper
public interface SysUserRoleMapper {
    void deleteByUserId(@Param("userId") Long userId);

    void doAssign(@Param("userId") Long userId, @Param("roleId") Long roleId);

    List<Long> selectRoleIdsByUserId(@Param("userId") Long userId);
}
